package com.ddone.code.executor.service.impl;

import com.ddone.code.executor.pojo.entity.ColumnMetaData;
import com.ddone.code.executor.pojo.entity.DataSourceConfig;
import com.ddone.code.executor.pojo.entity.ExecuteResult;
import com.ddone.code.executor.pojo.enums.ExecutorType;
import com.ddone.code.executor.service.ExecutorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ddone
 * @date 2024/8/2-20:58
 */
@Service
public class HiveExecutorServiceImpl implements ExecutorService {

    @Resource
    @Qualifier("hiveJdbcTemplate")
    private JdbcTemplate hiveJdbcTemplate;
    @Override
    public ExecuteResult execute(String code, ExecutorType executeType) {
        return null;
    }

    @Override
    public List<String> executorTableCompleter(DataSourceConfig dataSourceConfig, String schemaName) {
        return null;
    }

    @Override
    public List<ColumnMetaData> tableColumnsCompleter(DataSourceConfig dataSourceConfig, String schemaName, String tableName) {
        return null;
    }

    @Override
    public List<String> executorSchemaCompleter(DataSourceConfig dataSourceConfig) {
        return null;
    }

}
